﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Management;

namespace TrafficSplitter
{
    class AdapterFunctionsWMI : AdapterFunctionsInterface
    {
        public String GetGatewayIPAddress(VirtualAdapter adapter)
        {
            Routing.GetAdapterInfo(adapter);

            return adapter.GetGateway();
        }

        public void EnumerateInterfaces(List<VirtualAdapter> adapters)
        {
            Routing.Enumerate(adapters);
        }

        public TS_STATES GetInterfaceState(VirtualAdapter adapter)
        {
            return TS_STATES.Connected;
        }
    }
}
